import request from "../request/index";

const baseUrl = process.env.VUE_APP_BASE_URL;

export function GetMenuList(roleId) {
  return request.get(`${baseUrl}/RoleMenu/GetMenuList?roleId=${roleId}`);
}

export function UpdateRoleMenu(roleId, menuIds) {
  return request.post(`${baseUrl}/RoleMenu/UpdateRoleMenu`, {
    roleId: roleId,
    menuIds: menuIds,
  });
}
